<template>
  <span>{{ sex }}</span>
</template>
<script>
export default {
  data() {
    return { sex: null }
  },
  beforeMount() {
    switch (this.params.value) {
      case 1:
        this.sex = '男'
        break
      case 2:
        this.sex = '女'
        break
      default:
        this.sex = '未提供'
        break
    }
  }
}
</script>
